import Vue from "vue";
import Router from "vue-router";
import Home from "../views/Home.vue"
import homepage from "../views/homepage.vue"
Vue.use(Router);
// 解决两次访问相同路由地址报错
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
	return originalPush.call(this, location).catch(err => err)
}
export default new Router({
	routes: [{
			path: "/",
			name: "homepage",
			component: homepage
		},
		{
			path: "/home",
			name: "home",
			component: Home
		},
		// 患者信息
		{
			path: "/user",
			name: "user",
			component: () => import("../components/common/user")
		},
		// 自助建档
		{
			path: "/archives",
			name: "archives",
			component: () => import("../views/archives")
		},
		// 读卡注册
		{
			path: "/readcard",
			name: "readcard",
			component: () => import("../views/readcard")
		},
		// 门诊缴费
		{
			path: "/mzjs",
			name: "mzjs",
			component: () => import("../views/mzjs")
		},
		//门诊充值
		{
			path: "/mzcz",
			name: "mzcz",
			component: () => import("../views/mzcz")
		},
		//门诊充值
		{
			path: "/zycz",
			name: "zyczOld",
			component: () => import("../views/zycz")
		},
		//测试websocket
		{
			path: "/webSocket/websocketTest",
			name: "webSocket",
			component: () => import("../views/webSocket/websocketTest")
		},
		//门诊缴费 首页面
		{
			path: "/mzjf/mzjfIndex",
			name: "mzjf",
			component: () => import("../views/mzjf/mzjfIndex")
		},
		//门诊缴费 首页面 下一页
		{
			path: "/mzjf/mzjfIndexNext",
			name: "mzjfIndexNext",
			component: () => import("../views/mzjf/mzjfIndexNext")
		},
		//门诊缴费 缴费详情
		{
			path: "/mzjf/mzjfDetail",
			name: "mzjfDetail",
			component: () => import("../views/mzjf/mzjfDetail")
		},
		//住院充值 充值页面
		{
			path: "/zycz/czym",
			name: "yjjcz",
			component: () => import("../views/zycz/czym")
		},
		//门诊预约 选择号别
		{
			path: "/mzyy/mzyyXzhb",
			name: "mzyyXzhb",
			component: () => import("../views/mzyy/mzyyXzhb")
		},
		//门诊预约 选择科室
		{
			path: "/mzyy/mzyyXzks",
			name: "mzyy",
			component: () => import("../views/mzyy/mzyyXzks")
		},
		//门诊预约 选择医生
		{
			path: "/mzyy/mzyyXzys",
			name: "mzyyXzys",
			component: () => import("../views/mzyy/mzyyXzys")
		},
		//门诊预约 选择时间段
		{
			path: "/mzyy/mzyyXzsj",
			name: "mzyyXzsj",
			component: () => import("../views/mzyy/mzyyXzsj")
		},
		//门诊预约 选择日期
		{
			path: "/mzyy/mzyyXzrq",
			name: "mzyyXzrq",
			component: () => import("../views/mzyy/mzyyXzrq")
		},
		//门诊预约 确认挂号信息
		{
			path: "/mzyy/mzyyQrghxx",
			name: "mzyyQrghxx",
			component: () => import("../views/mzyy/mzyyQrghxx")
		},
		//打印报告 打印报告
		{
			path: "/dybg/dybg",
			name: "dybgHome",
			component: () => import("../views/dybg/dybg")
		},
		//打印报告 选择打印报告
		{
			path: "/dybg/xzdybg",
			name: "dybg",
			component: () => import("../views/dybg/xzdybg")
		},
		//清单查询 选择清单查询类型
		{
			path: "/qdcx/qdcxXzlx",
			name: "qdcx",
			component: () => import("../views/qdcx/qdcxXzlx")
		},
		//清单查询 门诊清单   
		{
			path: "/qdcx/mzqdIndex",
			name: "mzqdIndex",
			component: () => import("../views/qdcx/mzqdIndex")
		},
		//清单查询 门诊清单详情
		{
			path: "/qdcx/mzqdDetail",
			name: "mzqdDetail",
			component: () => import("../views/qdcx/mzqdDetail")
		},
		//公共组件页面 选择刷卡方式
		{
			path: "/readcard/xzskfs",
			name: "xzskfs",
			component: () => import("../views/readcard/xzskfs")
		},
		//公共组件页面 检查银行卡
		{
			path: "/paycenter/checkYhk",
			name: "checkYhk",
			component: () => import("../views/paycenter/checkYhk")
		},
		//价格查询
		{
			path: "/jgcx/index",
			name: "jgcx",
			component: () => import("../views/jgcx")
		},
		//价格查询 查询页面
		{
			path: "/jgcx/search",
			name: "jgcxSearch",
			component: () => import("../views/jgcx/search")
		},
		//智能导诊
		{
			path: "/zndz/index",
			name: "zndz",
			component: () => import("../views/zndz")
		},
		//智能导诊 就诊部位  xzjtjzbw
		{
			path: "/zndz/jzbw",
			name: "zndzJzbw",
			component: () => import("../views/zndz/jzbw")
		},
		//智能导诊 选择具体就诊部位    
		{
			path: "/zndz/xzjtjzbw",
			name: "xzjtjzbw",
			component: () => import("../views/zndz/xzjtjzbw")
		},
		//智能导诊 推荐科室
		{
			path: "/zndz/tjks",
			name: "tjks",
			component: () => import("../views/zndz/tjks")
		},
		//自助取号 首页
		{
			path: "/zzqh/index",
			name: "zzqh",
			component: () => import("../views/zzqh")
		},
		//自助取号 凭条打印
		{
			path: "/zzqh/printTickertape",
			name: "printTickertape",
			component: () => import("../views/zzqh/printTickertape")
		},
		//满意度调查 首页 选择满意度调查方式
		{
			path: "/myddc/writeForm",
			name: "myddcWriteForm",
			component: () => import("../views/myddc/writeForm")
		}, 
		//满意度调查 调查页面
		{
			path: "/myddc/index",
			name: "myddc",
			component: () => import("../views/myddc")
		}, 
		//医技预约 首页
		{
			path: "/yjyy/index",
			name: "yjyy",
			component: () => import("../views/yjyy")
		},		
		//医技预约 选择日期
		{
			path: "/yjyy/yjyyChoseDate",
			name: "yjyyChoseDate",
			component: () => import("../views/yjyy/yjyyChoseDate")
		},
		//医技预约 选择时间
		{
			path: "/yjyy/yjyyChoseTime",
			name: "yjyyChoseTime",
			component: () => import("../views/yjyy/yjyyChoseTime")
		},
		//医院简介 选择简介类型
		{
			path: "/yyjj/index",
			name: "yyjj",
			component: () => import("../views/yyjj")
		},
		//医院简介 首页
		{
			path: "/yyjj/yyjjHome",
			name: "yyjjHome",
			component: () => import("../views/yyjj/yyjjHome")
		},
		//科室简介 首页
		{
			path: "/yyjj/ksjjHome",
			name: "ksjjHome",
			component: () => import("../views/yyjj/ksjjHome")
		},
		//科室简介  选择科室和医生
		{
			path: "/yyjj/choseKsAndDoctor",
			name: "choseKsAndDoctor",
			component: () => import("../views/yyjj/choseKsAndDoctor")
		},
		//医生简介
		{
			path: "/yyjj/ysjj",
			name: "ysjj",
			component: () => import("../views/yyjj/ysjj")
		},
		//凭条补打  选择补打方式
		{
			path: "/ptbd/ptbdXzlx",
			name: "ptbd",
			component: () => import("../views/ptbd/ptbdXzlx")
		},
		//凭条补打  补打页面
		{
			path: "/ptbd/ptbdIndex",
			name: "ptbdIndex",
			component: () => import("../views/ptbd/ptbdIndex")
		}//核酸检测首页 确认核酸检测信息
		,{
			path: "/hsyy/index",
			name: "hsyy",
			component: () => import("../views/hsyy/index")
		},
	]
});
